﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SHRIS.MIS.Entity.ScadaData
{
    [Table("tb_rowData")]
    public class RowDataEntity
    {
        /// <summary>
        /// 记录主键
        /// </summary>
        [Key]
        [Column("RecordId")]
        public Guid Id { get; set; }

        /// <summary>
        /// 数据源唯一ID
        /// </summary>
        [Required]
        public Guid DataSourceId { get; set; }

        /// <summary>
        /// 参数值
        /// </summary>
        [Required]
        public string DataValue { get; set; }

        /// <summary>
        /// 数值更新时间
        /// </summary>
        [Required]
        public DateTimeOffset ServerTime { get; set; }

        /// <summary>
        /// 数值插入时间
        /// </summary>
        [Required]
        public DateTimeOffset UpdateTime { get; set; }  
    }
}
